package init

import (
	"baidu_api/basic/globar"
	"baidu_rpc/kitex_gen/baidu_rpc/user/userservice"
	"log"

	"github.com/cloudwego/kitex/client"
)

func UserRpc() {
	c, err := userservice.NewClient("example.shop.item", client.WithHostPorts("127.0.0.1:8890"))
	if err != nil {
		log.Fatal(err)
	}
	globar.UserClient = c
}
